package history.hot100;

import java.util.Arrays;

// 215. 数组中的第K个最大元素:https://leetcode-cn.com/problems/kth-largest-element-in-an-array/
public class LeetCode_215 {
    public int findKthLargest(int[] nums, int k) {
        if (nums == null || nums.length == 0) return -1;
        Arrays.sort(nums);
        return nums[nums.length-k];
    }
}
